From: Florian Müllner Date: Wed, 2 Aug 2023 16:09:46 +0000 (+0200) Subject: status/backlight: Notify slider value changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~60 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7c4b1d4ae62cfc6c5b0637819d465ce8968bd944;p=gnome-shell.git status/backlight: Notify slider value changes The custom setter used by the slider item isn't emitting change notifications, so the property binding that uses it as source never propagates the new value. Fix this by emitting proper change notifications. Part-of: --- diff --git a/js/ui/status/backlight.js b/js/ui/status/backlight.js index cb2904ece..e7cf7e795 100644 --- a/js/ui/status/backlight.js +++ b/js/ui/status/backlight.js @@ -44,9 +44,14 @@ const SliderItem = GObject.registerClass({ } set value(value) { + if (this.value === value) + return; + this._slider.block_signal_handler(this._sliderChangedId); this._slider.value = value / 100; this._slider.unblock_signal_handler(this._sliderChangedId); + + this.notify('value'); } });